projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55ade04
)
animations: Start transitions from the current value
author
Benjamin Otte
<otte@redhat.com>
Fri, 5 Oct 2012 16:49:39 +0000
(18:49 +0200)
committer
Benjamin Otte
<otte@redhat.com>
Sat, 6 Oct 2012 19:55:53 +0000
(15:55 -0400)
... instead of from the intrinsic value. This way, we respect running
animations.
Note that the concept of "reversing" transitions is not implemented yet.
gtk/gtkcsscomputedvalues.c
patch
|
blob
|
history
diff --git
a/gtk/gtkcsscomputedvalues.c
b/gtk/gtkcsscomputedvalues.c
index ff89eee881379e1f7f058efc8bb4ecd148a50085..94115a587060224b52c1fe7b23608e3358d88616 100644
(file)
--- a/
gtk/gtkcsscomputedvalues.c
+++ b/
gtk/gtkcsscomputedvalues.c
@@
-411,7
+411,7
@@
gtk_css_computed_values_create_css_transitions (GtkCssComputedValues *values,
else
{
animation = _gtk_css_transition_new (i,
-
start
,
+
_gtk_css_computed_values_get_value (source, i)
,
_gtk_css_array_value_get_nth (timing_functions, i),
timestamp + delay * G_USEC_PER_SEC,
timestamp + (delay + duration) * G_USEC_PER_SEC);